package com.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.entity.Carpool;
import com.entity.Wall;

public interface CarpoolMapper {
	/**插入拼车*/
    public Integer insertCarpool(Carpool carpool);
    /**查询拼车记录 */
	public List<Carpool> lookCarpool(Carpool carpool);
	/**查询一条拼车记录 */
	public Carpool lookIdCarpool(Integer carpool_id);
	/**修改一条具体的拼车记录*/
	public Integer updateCarpool(Carpool carpool);
	/**修改一条具体的拼车记录*/
	public Integer updateFlagCarpool(Carpool carpool);
    /**删除一条具体的拼车记录*/
	public Integer deleteCarpool(Integer carpool_id);
	
	/* 总的条数 */
	Integer LookCarpoolCount();
	 /*分页展示表白信息*/
    List<Carpool> queryAllCarpools(@Param("page") Integer page, @Param("count") Integer count);
    /* 总的条数 */
	Integer LookUnCarpoolCount();
	 /*分页展示表白信息*/
    List<Carpool> queryAllUnCarpools(@Param("page") Integer page, @Param("count") Integer count);
    
}
